﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WLWZGao6.Domain.Common;
using WLWZGao6.Domain.Dto;
using WLWZGao6.Domain.Model;

namespace WLWZGao6.APItitlion.IService
{
    public interface IRoleService
    {
        //角色添加
        public EData RoleAdd(Role role);
        //角色删除
        public EData RoleDel(int Ids);
        //角色查询显示
        public EData RoleShow(string RoleName, int Index, int Size);
        //角色修改
        public EData RoleUpd(int Ids, Role role);
        //用户角色添加
        public EData UserRoleAdd(UserRole userRole);
        //用户角色删除
        public EData UserRoleDel(int Ids);
        //角色权限显示
        public EData RolePermShow();
        //角色权限添加
        public EData RolePermAdd(RolePremDto rolePremDto);
        //角色权限编辑
        public EData RolePermUpt(int Ids, string PermId);
        //角色权限删除
        public EData RolePermDel(int Ids);
        //递归权限显示
        public List<PermDto> PermShow();
        public List<PermDto> PermTypeShow(List<Perm> perms, int Ids = 0);
    }
}
